using System;
using System.Collections.Generic;
using System.Text;

namespace DTO
{
    public class Factory
    {
        public enum DtoEnum
        {
            Hinhthucban = 0,
            Hoadonban = 1,
            Hoadonmua = 2,
            Bacsiketoa = 3,
            Congtynhaphang = 4,
            Donviduocpham = 5,
            Loaiduocpham = 6,
            Nhanvien = 7,
            Duocpham = 8
        }
        public IObject GetObjectDto(DtoEnum val)
        {
            switch (val)
            {
                case DtoEnum.Hinhthucban:
                    return new HinhThucBanDto();
            }
            return null;
        }
    }
}
